package cn.buk.api.szkj.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 航班查询结果
 * @author yfdai
 */
public class FlightSearchResult {
  private int errorCode;
  private String errorMsg;
  private String ip;

  private List<FlightInfo> flights;

  public int getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(int errorCode) {
    this.errorCode = errorCode;
  }

  public String getErrorMsg() {
    return errorMsg;
  }

  public void setErrorMsg(String errorMsg) {
    this.errorMsg = errorMsg;
  }

  public String getIp() {
    return ip;
  }

  public void setIp(String ip) {
    this.ip = ip;
  }

  public List<FlightInfo> getFlights() {
    if (flights == null) {
      flights = new ArrayList<>();
    }
    return flights;
  }

  public void setFlights(List<FlightInfo> flights) {
    this.flights = flights;
  }
}
